import time

start_time = time.time()

for a in range(1, 1001):
    for b in range(1, 1001):
        if (a ** 2 + b ** 2 == (1000 - a - b) ** 2):
            print('a:{0}, b:{1}, c{2}'.format(a, b, 1000 - a - b))

end_time = time.time()
print('程序已完成，总计用时：{0}'.format(end_time - start_time))
